package com.dianping.cat.configuration.business.entity;

import com.dianping.cat.configuration.business.BaseEntity;
import com.dianping.cat.configuration.business.IVisitor;
import java.util.LinkedHashMap;
import java.util.Map;

public class BusinessReportConfig
  extends BaseEntity<BusinessReportConfig>
{
  private String m_id;
/*  12 */   private Map<String, BusinessItemConfig> m_businessItemConfigs = new LinkedHashMap();

/*  14 */   private Map<String, CustomConfig> m_customConfigs = new LinkedHashMap();






/*  21 */   public void accept(IVisitor visitor) { visitor.visitBusinessReportConfig(this); }


  public BusinessReportConfig addBusinessItemConfig(BusinessItemConfig businessItemConfig) {
    this.m_businessItemConfigs.put(businessItemConfig.getId(), businessItemConfig);
/*  26 */     return this;
  }

  public BusinessReportConfig addCustomConfig(CustomConfig customConfig) {
/*  30 */     this.m_customConfigs.put(customConfig.getId(), customConfig);
    return this;
  }


  public boolean equals(Object obj) {
    if (obj instanceof BusinessReportConfig) {
/*  37 */       BusinessReportConfig _o = (BusinessReportConfig)obj;

/*  39 */       if (!equals(getId(), _o.getId())) {
/*  40 */         return false;
      }

/*  43 */       if (!equals(getBusinessItemConfigs(), _o.getBusinessItemConfigs())) {
/*  44 */         return false;
      }

/*  47 */       if (!equals(getCustomConfigs(), _o.getCustomConfigs())) {
/*  48 */         return false;
      }


/*  52 */       return true;
    }

/*  55 */     return false;
  }


/*  59 */   public BusinessItemConfig findBusinessItemConfig(String id) { return (BusinessItemConfig)this.m_businessItemConfigs.get(id); }



/*  63 */   public CustomConfig findCustomConfig(String id) { return (CustomConfig)this.m_customConfigs.get(id); }



/*  67 */   public Map<String, BusinessItemConfig> getBusinessItemConfigs() { return this.m_businessItemConfigs; }



/*  71 */   public Map<String, CustomConfig> getCustomConfigs() { return this.m_customConfigs; }



/*  75 */   public String getId() { return this.m_id; }






  public void mergeAttributes(BusinessReportConfig other) {
/*  91 */     if (other.getId() != null) {
/*  92 */       this.m_id = other.getId();
    }
  }


/*  97 */   public BusinessItemConfig removeBusinessItemConfig(String id) { return (BusinessItemConfig)this.m_businessItemConfigs.remove(id); }



/* 101 */   public CustomConfig removeCustomConfig(String id) { return (CustomConfig)this.m_customConfigs.remove(id); }


  public BusinessReportConfig setId(String id) {
/* 105 */     this.m_id = id;
/* 106 */     return this;
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-core-3.0.0.jar!/com/dianping/cat/configuration/business/entity/BusinessReportConfig.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */